===============================================================================
                                W A V E C O M
===============================================================================

OPEN AT V2.00
Updated : January 22th, 2003

===============================================================================

(To print this file : use Notepad and remove all margins and default header.)

                       ---------------------------------
                              Content of this file
                       ---------------------------------

SMS and recall (Cooperative mode) sample application description

I.      Changes
II.     Application description
III.    Application States



   
I - Changes
===========

* 03/01/22  -   V2.00
  Initial revision.


II - Application description
============================

 This application is waiting for an incoming SMS (+CMTI result).
 When it receives one, it read the text with the AT+CMGR command : if this one
is "Recall me", the application gets the SMS sender phone number.

 Then it is waiting for the external application to send an AT+RECALL command
and starts a 5 seconds timer.
 If the external application sends the command, a call is setup to the SMS
sender phone number, before returning to IDLE state.
 If the time-out expires, the application returns to IDLE state without calling
back the SMS sender.



III - Application States
========================

          ********
          * INIT *
          ********
            |
            |   Wait for +WIND: 4 indication
            |
            V
          ********
       +->* IDLE *
       |  ********
       |    |
       |    |   Incoming SMS (+CMTI result)
       |    |
       |    V
normal |  *********************
SMS    +--* Read the SMS text * With AT+CMGR command
text   |  *********************
       |    |
       |    |   The SMS text is "Recall me"
       |    |   
       |    V
       |  **************
       |  * Delete SMS * With AT+CMGD command ;
       |  ************** Also display the phone number in an unsolicited result
       |    |
       |    |   
       |    |   
       |    V
       |  ******************************
Time-  |  * Wait for AT+RECALL command *
out    +--* Start 5s time-out          *
       |  ******************************
       |    |
       |    |   AT+RECALL command is sent from external application
       |    |   
       |    V
       |  **************
       |  * Setup Call * With ATD command
       |  **************
       |    |
       |    |   
       +----+
